package com.bean;

/**
 * @ClassName BookPage
 * @Desc 图书名称查找类
 * @Author xiaoding
 * @Date 2021/1/10 22:19
 * @Version 1.0
 */

public class BookPage {
    //功能属性
    private String bName;
    private int page;
    private int currPage;
    private int start;

    //构造方法
    public BookPage() {
    }
    public BookPage(String bName, int page, int currPage) {
        this.bName = bName;
        this.page = page;
        this.currPage = currPage;
    }
    public BookPage(int page, int currPage) {
        this.page = page;
        this.currPage = currPage;
    }

    //get、set方法
    public String getbName() {
        return bName;
    }

    public int getPage() { return page; }

    public int getStart() { return (page-1)*currPage; }

    public int getCurrPage() {
        return currPage;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }
}
